package xiaolong.lian.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import xiaolong.lian.entity.Doc;

import java.util.List;

@Repository
public interface DocDao {
    List<Doc> getDocsByTel(@Param("tel") String tel);

    Doc getDocById(@Param("id") String id);

    int createDoc(@Param("id") String id,@Param("name") String name,@Param("tel") String tel);

    int deleteDoc(@Param("id")String id);

    int renameDoc(@Param("id")String id, @Param("name") String name);
}
